<%-- 
    Document   : InsertKamusGiziAdmin
    Created on : Nov 25, 2013, 8:32:18 AM
    Author     : Renia
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Delete</title>
    </head>
    <body>
        <%
            Connection con = null;
            String idPangan = request.getParameter("idPangan");
            String queryText = ("delete from pangan where idPangan='" + idPangan + "'");
            try {
                Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "HR", "renia");
                Statement stat = con.createStatement();
                ResultSet rst = stat.executeQuery(queryText);
                rst.close();
                stat.close();
                con.close();
            } catch (Exception e) {
                out.println("Error.." + e);
            }
             response.sendRedirect("KamusGiziAdministrator.jsp");
%>
        <%=idPangan%>
    </body>
</html>
